package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum RedPacketType {
    RED_PACKET_1(1,"自定义金额"), RED_PACKET_2(2,"2元"),
    RED_PACKET_6(6,"6元"),RED_PACKET_8(8,"8元"), RED_PACKET_12(12,"12元"),
    RED_PACKET_20(20,"20元"),RED_PACKET_60(60,"60元"), RED_PACKET_80(80,"80元"),
    RED_PACKET_120(120,"120元"),RED_PACKET_200(200,"200元");

    private int code;
    private String name;
    RedPacketType(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<RedPacketType> getAllData(){
        List<RedPacketType> result = new ArrayList<RedPacketType>();
        for (RedPacketType current : RedPacketType.values())
        {
            result.add(current);
        }
        return result;
    }

//    public static void main(String[] args) {
//        for(ChannelType c : getAllChannel()){
//            System.out.print(c.getName());
//        }
//    }
}
